﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL;

namespace Business
{
    public class ImageManage
    {
        public static bool Userinfo(string email ,string dbsavefilename)
        {
            _userinfo _us = new _userinfo();
            _us._user_email = email;
            BLL_userinfo bll_us = new BLL_userinfo();
            _us = bll_us.search(_us, "_user_email");
            if (_us != null)
            {
                _us._user_image = dbsavefilename;
                if (bll_us.update(_us))
                {
                    return true;
                }
            }
            return false;
        }
    }
}
